/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.factory.server.scheduler;

import com.factory.server.consumers.SchedulerTasksQueue;
import com.factory.server.dto.UserTaskDTO;
import com.factory.server.json.SchedulerResult;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author milos
 */
public interface SchedulerComputerIface {

    @Transactional
    public SchedulerResult computeSchedulerResult(UserTaskDTO userTaskDTO, SchedulerTasksQueue schedulerTasksQueue, int numberOfThreads);

    @Transactional
    public SchedulerResult scheduleEratoshenes(UserTaskDTO userTaskDTO);
}
